Skip to content

LI module: Use matcher instead of source for eid premission#4487

Merged
osulzhenko merged 16 commits into
prebid:masterfrom
LiveIntent:DATA-46376
May 26, 2026
Merged

LI module: Use matcher instead of source for eid premission#4487
osulzhenko merged 16 commits into
prebid:masterfrom
LiveIntent:DATA-46376

Conversation

@peixunzhang
Copy link
Copy Markdown
Contributor

🔧 Type of changes

  • new bid adapter
  • bid adapter update
  • new feature
  • new analytics adapter
  • new module
  • module update
  • bugfix
  • documentation
  • configuration
  • dependency update
  • tech debt (test coverage, refactorings, etc.)

✨ What's the context?

Use matcher to determine when to apply EID permissions, instead of source names, to avoid collisions with unrelated traffic and ensure we only permission IDs we enrich.

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

@Net-burst Net-burst requested review from CTMBNara and Net-burst May 7, 2026 15:07
Comment on lines +229 to +230
final List<ExtRequestPrebidDataEidPermissions> modifiedEidPermissions = CollectionUtils
.isEmpty(eidPermissions)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One-line it

.build())
.toList();
private List<ExtRequestPrebidDataEidPermissions> createEidPermissions() {
return List.of(ExtRequestPrebidDataEidPermissions.builder()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List.of -> Collections.singletonList

@peixunzhang peixunzhang requested a review from CTMBNara May 18, 2026 08:04
CTMBNara
CTMBNara previously approved these changes May 19, 2026
Net-burst
Net-burst previously approved these changes May 20, 2026
Copy link
Copy Markdown
Collaborator

@Net-burst Net-burst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peixunzhang
Copy link
Copy Markdown
Contributor Author

LGTM

Thanks!

@osulzhenko
Copy link
Copy Markdown
Collaborator

Hi @peixunzhang, Danylo made a good point, build is currently broken. Could you fix the checkstyle?

Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:221:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]
Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:288:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]

@peixunzhang
Copy link
Copy Markdown
Contributor Author

peixunzhang commented May 20, 2026

Hi @peixunzhang, Danylo made a good point, build is currently broken. Could you fix the checkstyle?

Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:221:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]
Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:288:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]

sure, i will fix it

i fixed the indent, please check~
thank you

Use matcher to determine when to apply EID permissions, instead of source names, to avoid collisions with unrelated traffic and ensure we only permission IDs we enrich.:
@peixunzhang peixunzhang dismissed stale reviews from Net-burst and CTMBNara via 8cf09db May 20, 2026 13:41
@peixunzhang peixunzhang requested review from CTMBNara and Net-burst May 21, 2026 08:45
@osulzhenko
Copy link
Copy Markdown
Collaborator

@peixunzhang

[INFO] Starting audit...
Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:53:1: Extra separation in import group before 'java.util.Collections' [ImportOrder]
Audit done.

@peixunzhang
Copy link
Copy Markdown
Contributor Author

@peixunzhang

[INFO] Starting audit...
Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:53:1: Extra separation in import group before 'java.util.Collections' [ImportOrder]
Audit done.

hiii @osulzhenko, I fixed the formatting. Could you run the CI again? Thank you!

@osulzhenko
Copy link
Copy Markdown
Collaborator

@peixunzhang some tests failed. You can reproduce the CI results locally with this command: mvn -B package --file extra/pom.xml

@peixunzhang
Copy link
Copy Markdown
Contributor Author

@peixunzhang some tests failed. You can reproduce the CI results locally with this command: mvn -B package --file extra/pom.xml

got it! I will take a look. Thanks~~

@osulzhenko osulzhenko merged commit ee59b6a into prebid:master May 26, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants